package com.design.策略模式;

public class TestMain {

	public static void main(String[] args) {
		
		Context<Integer> con = new Context<>(new IntegerConvert());
		System.out.println(con.convert("12345"));
		
		Context<Long> conb = new Context<>(new LongConvert());
		System.out.println(conb.convert("1234561234567754334"));
		
		
		ContextM<String> cm = new ContextM<String>(StrUpperConvert.class);
		System.out.println(cm.convert("abcdefg"));
		
	}
	
}
